package com.example.teesystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teesystem.common.utils.Response;
import com.example.teesystem.entity.Issue;
import com.example.teesystem.entity.vo.advancedTrain.AdAnswer;
import com.example.teesystem.entity.vo.advancedTrain.Answer;
import com.example.teesystem.entity.vo.issue.*;
import com.example.teesystem.entityDto.IssueSimpleAnswer;
import com.example.teesystem.entityDto.IssueSimpleMessage;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author NieYaShi
* @description 针对表【t_issue】的数据库操作Service
* @createDate 2022-03-28 09:23:20
*/
public interface IssueService extends IService<Issue> {
    Response addSingleIssue(IssueInsertVo issueInsertVo);
    Response importIssue(MultipartFile file, int course_id, int chapterId);
    Response bringInIssue(String ids, Integer courseId,int type);
    Response updateIssue(IssueUpdateVo issueInsertVo);
    Response deleteIssue(int id);
    List<IssueExcel> outPutIssue(String ids, Integer courseId);
    Response getIssueByMultiCondition(IssueSelectVo issueSelectVo);
    Response getIssueByMultiConditionInExamDataBase(IssueSelectVo1 issueSelectVo1);
    Response getIssueMsg(Integer id);
    Response getTypeVisibility(IssueVisibilityVo issueVisibilityVo);
    Response getDifficultyVisibility(IssueVisibilityVo issueVisibilityVo);
    Response getTypeRefNumVisibility(IssueVisibilityVo issueVisibilityVo);
    Response getDifficultyTypeVisibility(IssueVisibilityVo issueVisibilityVo);
    Response getInterestIssue(int courseId, int difficulty, int type, int chapterId);
    Response checkAnswer(int issueId, String answer);
    IssueSimpleAnswer checkAnswer(Answer answer);
    Response getSecondGameIssue(int courseId,int type);
}
